function A(){
    return new Promise((resolve, reject) => {
        setTimeout(() => {
            resolve('A')
        }, 1000)
    })
}
function B(){
    console.log('B');
}
A().then((res)=>{
    console.log(res)
})

